package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.activity.diggold.entity.DigGoldBlockData;

import java.util.Date;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_l_dig_gold_dig", autoSave = true)
public class LogDigGoldOperate{
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "用户当前所在第一行")
    private int inRow;
    @FieldTypeAnnotation(desc = "操作类型,1:挖 2:炸 3:钻")
    private int opType;
    @FieldTypeAnnotation(desc = "消耗")
    private String cost;

    @FieldTypeAnnotation(desc = "操作方块",saveJson = true)
    private DigGoldBlockData blockData;

    @FieldTypeAnnotation(desc = "玩家老积分")
    private long oldScore;
    @FieldTypeAnnotation(desc = "玩家获得积分")
    private long addScore;
    @FieldTypeAnnotation(desc = "玩家新积分")
    private long newScore;

    @FieldTypeAnnotation(desc = "玩家获得古董数量",saveJson = true)
    private Map<Integer,Integer> addAntique;
    @FieldTypeAnnotation(desc = "道具奖励")
    private String itemReward;

    @FieldTypeAnnotation(desc = "操作时间")
    private Date time;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getInRow() {
        return inRow;
    }

    public void setInRow(int inRow) {
        this.inRow = inRow;
    }

    public int getOpType() {
        return opType;
    }

    public void setOpType(int opType) {
        this.opType = opType;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public DigGoldBlockData getBlockData() {
        return blockData;
    }

    public void setBlockData(DigGoldBlockData blockData) {
        this.blockData = blockData;
    }

    public long getOldScore() {
        return oldScore;
    }

    public void setOldScore(long oldScore) {
        this.oldScore = oldScore;
    }

    public long getAddScore() {
        return addScore;
    }

    public void setAddScore(long addScore) {
        this.addScore = addScore;
    }

    public long getNewScore() {
        return newScore;
    }

    public void setNewScore(long newScore) {
        this.newScore = newScore;
    }

    public Map<Integer, Integer> getAddAntique() {
        return addAntique;
    }

    public void setAddAntique(Map<Integer, Integer> addAntique) {
        this.addAntique = addAntique;
    }

    public String getItemReward() {
        return itemReward;
    }

    public void setItemReward(String itemReward) {
        this.itemReward = itemReward;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public LogDigGoldOperate(int activityId, long userId, int inRow, int opType, String cost, DigGoldBlockData blockData, long oldScore, long addScore, long newScore, Map<Integer, Integer> addAntique, String itemReward, Date time) {
        this.activityId = activityId;
        this.userId = userId;
        this.inRow = inRow;
        this.opType = opType;
        this.cost = cost;
        this.blockData = blockData;
        this.oldScore = oldScore;
        this.addScore = addScore;
        this.newScore = newScore;
        this.addAntique = addAntique;
        this.itemReward = itemReward;
        this.time = time;
    }
}
